package org.aileen.trans.service;

import org.aileen.trans.mapper.LogInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service
public class LogService {
    @Autowired
    private LogInfoMapper logInfoMapper;

    @Transactional(propagation = Propagation.NEVER)
    public Integer insertLog(String name, String op) {
        Integer result = logInfoMapper.insertLog(name, op);
//        int a = 10 / 0;
        return result;
    }
}
